package org.cy.websocket.stomp.messaging;

import org.cy.websocket.stomp.StompHeaders;

/**
 * Created in 2021-05-09 21:11
 *
 * @author cao.yong
 */
public interface StompMessage<T> extends Message<T> {

    /**
     * When subscribing with manual acknowledgement, call this method on the message to ACK the message.
     * @param headers Key/Value Pair
     */
    void ack(StompHeaders headers);

    /**
     * When subscribing with manual acknowledgement, call this method on the message to NACK the message.
     *
     * @param headers Key/Value Pair
     */
    void nack(StompHeaders headers);
}
